package section8;

class Person8_3{
    protected String name;
    protected int age;
    public Person8_3(){}
    public Person8_3(String name,int age){
        this.age=age;
        this.name=name;
    }
    protected void show(){
        System.out.println("姓名："+name+" 年龄："+age);
    }
}
class Student8_3 extends Person8_3{
    private String department;
    int age=20;
    public Student8_3(String xm,String dep){
        name=xm;
        department=dep;
        super.age=25;
        System.out.println("子类Student中成员变量age="+age);
        super.show();
        System.out.println("系别："+department);
    }
}
public class App8_3 {
    public static void main(String[] args) {
        Student8_3 stu=new Student8_3("王小刚","天体科学系");
    }
}
